﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace GBL.Repository.Resources
{
    /// <summary>
    /// The resources that can be edited or added by the user (they handle their own culture related information and are not hardcoded in the soft)
    /// By opposition of the division and all the other non changing notion in the CoA
    /// </summary>
    public class EditableResource
    {
        /// <summary>
        /// Gets or sets the type of resource.
        /// <see cref="ResourceType"/>
        /// </summary>
        /// <value>
        /// The type of resource, to define if the data is from the soft or modified by the user.
        /// </value>
        [XmlAttribute]
        public ResourceType TypeOfResource { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public String Name { get; set; }

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        public String Description { get; set; }
    }
}
